<%@page import="com.itwill.ecom.board.BoardBeans"%>
<%@page import="com.itwill.ecom.board.BoardServiceImpl"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%
	WebApplicationContext webContext = WebApplicationContextUtils.getWebApplicationContext(application);
	BoardServiceImpl boardService=(BoardServiceImpl)webContext.getBean("boardService");
	
	for(int i = 1 ; i <= 5 ; i++){
		BoardBeans temp = new BoardBeans(0, 1, "1타입테스트" + i, null, "testId" + i, "testContent" + i, "", i, i * 10, "testNick" + i);
		boardService.createBoard(temp);
	}
	
	for(int i = 1 ; i <= 10 ; i++){
		BoardBeans temp = new BoardBeans(0, 2, "2타입테스트" + i, null, "testId" + i, "testContent" + i, "", i, i * 10, "testNick" + i);
		boardService.createBoard(temp);
	}
%>